package com.zahb.qadx.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Zdw on 2020/11/10 16:45
 * 考试列表
 * {
 * "examId":6,
 * "name":"刘玥彤测试考试",
 * "startTime":"2020-11-06 18:56:56",
 * "endTime":"2020-11-28 00:00:00",
 * "maxScore":null,
 * "examTotalCount":0,
 * "examCount":0,
 * "type":0
 * }
 */
public class ExaminationListBean implements Parcelable {

    private int examId;
    private String name;
    private String startTime;
    private String endTime;
    private String maxScore;
    private int examTotalCount;
    private int examCount;
    private int type;

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(String maxScore) {
        this.maxScore = maxScore;
    }

    public int getExamTotalCount() {
        return examTotalCount;
    }

    public void setExamTotalCount(int examTotalCount) {
        this.examTotalCount = examTotalCount;
    }

    public int getExamCount() {
        return examCount;
    }

    public void setExamCount(int examCount) {
        this.examCount = examCount;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.examId);
        dest.writeString(this.name);
        dest.writeString(this.startTime);
        dest.writeString(this.endTime);
        dest.writeString(this.maxScore);
        dest.writeInt(this.examTotalCount);
        dest.writeInt(this.examCount);
        dest.writeInt(this.type);
    }

    public ExaminationListBean() {
    }

    protected ExaminationListBean(Parcel in) {
        this.examId = in.readInt();
        this.name = in.readString();
        this.startTime = in.readString();
        this.endTime = in.readString();
        this.maxScore = in.readString();
        this.examTotalCount = in.readInt();
        this.examCount = in.readInt();
        this.type = in.readInt();
    }

    public static final Parcelable.Creator<ExaminationListBean> CREATOR = new Parcelable.Creator<ExaminationListBean>() {
        @Override
        public ExaminationListBean createFromParcel(Parcel source) {
            return new ExaminationListBean(source);
        }

        @Override
        public ExaminationListBean[] newArray(int size) {
            return new ExaminationListBean[size];
        }
    };
}
